<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<!-- .breadcrumb -->
	</div>
	<!-- Main content -->
	<div class="page-content">
    	<div class="row">
    	    <div class="page-header">
    			<h1>结算列表</h1>
    		</div>
			<div style="padding:10px;">开户行：<?php echo $bank['bank_name']?> 卡号：<?php echo $bank['bank_num']?> 开户人：<?php echo $bank['bank_username']?></div>
            <div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								
                                <th style="width: 30%">结算日期</th>
                                <th style="width: 10%">订单金额</th>
                                <th style="width: 20%">首单佣金总额</th>
                                <th style="width: 30%">订单佣金总额</th>
                                <th style="width: 30%">转账状态</th>
							</tr>
						</thead> 
						<tbody>
						<?php if (isset($result)&&count($result)>0){
                            	foreach ($result as $rs){
                            	?>
							<tr>
                                <td><p><?php echo $rs['date_line'];?></p></td>
								<td><p><?php echo $rs['order_price'];?></p></td>
                                <td><p><?php echo $rs['first_commission']?></p></td>
                                <td><p><?php echo $rs['order_commission']?></p></td>
                                <td>
                                <a href="<?php echo base_url().'admin/systems/partner_transfer/'.$rs['id']?>" class="btn btn-sm"><i class="icon-edit"></i><?php if(!empty($rs['transfer'])){echo '已转账';}else{echo '未转账';}?></a>
                                
                                <a class="btn btn-sm" href="<?php echo base_url().'admin/systems/partner_export_order/'.$rs['id']?>">导出订单数据</a>
                                </td>
                               
    						</tr>
    						<?php }
                            }else{?>
                            <tr>
                            	<td colspan="14">无数据</td>
                            </tr>
                         <?php }?>
                         </tbody>
                     </table>
                     <div><a href="<?php echo base_url().'admin/systems/partner'?>" class="btn">返回列表</a></div>
            	</div><!-- /.table-responsive -->
			</div>
			
		</div><!-- /.row -->
	</div><!-- /.page-content -->
</div><!-- /.main-content -->
